<?php

$params = array();
if(count($_GET) > 0) {
    $params = $_GET;
} else {
    $params = $_POST;
}
// defaults
if($params['type'] == "") $params['type'] = "futzapp_test:fulbo";
if($params['title'] == "") $params['title'] = "Futzapp";
if($params['image'] == "") $params['image'] = "http://futzapp.com/images/field.jpg";
if($params['description'] == "") $params['description'] = "Jugate un Futzapp!";

?>

<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="description" content="mobile first, app, web app, responsive, admin dashboard, flat, flat ui">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">	
	
	<!-- Open Graph meta tags -->
	<meta property="fb:app_id" content="1475155856090225" />
	<meta property="og:site_name" content="Futzapp"/>
	<meta property="og:url" content="http://www.futzapp.com/back/public/matchSharer.php"/>
	<meta property="og:type" content="<?php echo $params['type']; ?>"/>
	<meta property="og:title" content="<?php echo $params['title']; ?>"/>
	<meta property="og:image" content="<?php echo $params['image']; ?>"/>
	<meta property="og:description" content="<?php echo $params['description']; ?>"/>

	<title>Futzapp</title>
	
</head>
<body>
	<p>TITULO: <?php echo $params['title']; ?> </p>
	<p>DESCRIPCION: <?php echo $params['description']; ?> </p>
	<p>IMAGEN: <img src="<?php echo $params['image']; ?>" /></p>
	<p>TIPO: <?php echo $params['type']; ?> </p>
</body>
</html>
